package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: sovy
 * @date: 2020/10/9
 * @description: 邮件记录
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "d_email_record")
public class EmailRecord implements Serializable {

    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    /**
     * 主题
     */
    @TableField(value = "vcSubject")
    private String subject;

    /**
     * 收件人
     */
    @TableField(value = "vcTo")
    private String to;

    /**
     * 抄送人
     */
    @TableField(value = "vcCC")
    private String cc;

    /**
     * 内容
     */
    @TableField(value = "vcContent")
    private String content;

    /**
     * 发送时间
     */
    @TableField(value = "dtCreateTime")
    private Date createTime;

    /**
     * 发送人id
     */
    @TableField(value = "intCreateAdminId")
    private Integer createAdminId;

    /**
     * 是否有附件
     */
    @TableField(value = "hasFile")
    private Boolean hasFile;

    /**
     * 附件名称
     */
    @TableField(value = "vcFileNames")
    private String fileNames;

    /**
     * 是否成功
     */
    @TableField(value = "isSuccess")
    private Boolean isSuccess;
}